<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <title>KNN-Classifier Operator</title>
    <link rel="stylesheet" href="../style.css">
</head>
<body>
<table class="header">
    <tr class="header">
        <td class="header">&nbsp;KNN-Classifier Operator</td>
        <td class="header" align="right">
            <a href="nbdocs://org.esa.snap.snap.help/org/esa/snap/snap/help/docs/general/overview/SnapOverview.html">
                <img src="images/snap_header.jpg" border="0"/></a>
        </td>
    </tr>
</table>
<h1>KNN-Classifier Operator Description</h1>
<h2>Overview</h2>
<table>
  <tr><td><b>Name:</b></td><td><code>KNN-Classifier</code></td></tr>
  <tr><td><b>Full name:</b></td><td><code>org.esa.snap.classification.gpf.knn.KNNClassifierOp</code></td></tr>
  <tr><td><b>Purpose:</b></td><td>K-Nearest Neighbour classifier</td></tr>
  <tr><td><b>Version:</b></td><td>null</td></tr>
</table>
<h2>Description</h2>
<i>No description available.</i>
<h2>Sources</h2>
<table>
<tr>
  <th>Name</th>
  <th>Description</th>
</tr>
<tr>
  <td><code>sourceProducts</code></td>
  <td></td>
</tr>
</table>
<h2>Parameters</h2>
<table>
<tr>
  <th>Name</th>
  <th>Data Type</th>
  <th>Default</th>
  <th>Description</th>
  <th>Constraints</th>
</tr>
<tr>
  <td><code>numNeighbours</code></td>
  <td><code>int</code></td>
  <td><code>5</code></td>
  <td>The number of neighbours</td>
  <td>interval: (1,*]</td>
</tr>
<tr>
  <td><code>numTrainSamples</code></td>
  <td><code>int</code></td>
  <td><code>5000</code></td>
  <td>The number of training samples</td>
  <td>interval: (1,*]</td>
</tr>
<tr>
  <td><code>savedClassifierName</code></td>
  <td><code>String</code></td>
  <td><code></code></td>
  <td>The saved classifier name</td>
  <td></td>
</tr>
<tr>
  <td><code>doLoadClassifier</code></td>
  <td><code>Boolean</code></td>
  <td><code>false</code></td>
  <td>Choose to save or load classifier</td>
  <td></td>
</tr>
<tr>
  <td><code>doClassValQuantization</code></td>
  <td><code>Boolean</code></td>
  <td><code>true</code></td>
  <td>Quantization for raster traiing</td>
  <td></td>
</tr>
<tr>
  <td><code>minClassValue</code></td>
  <td><code>Double</code></td>
  <td><code>0.0</code></td>
  <td>Quantization min class value for raster traiing</td>
  <td></td>
</tr>
<tr>
  <td><code>classValStepSize</code></td>
  <td><code>Double</code></td>
  <td><code>5.0</code></td>
  <td>Quantization step size for raster traiing</td>
  <td></td>
</tr>
<tr>
  <td><code>classLevels</code></td>
  <td><code>int</code></td>
  <td><code>101</code></td>
  <td>Quantization class levels for raster traiing</td>
  <td></td>
</tr>
<tr>
  <td><code>trainOnRaster</code></td>
  <td><code>Boolean</code></td>
  <td><code>true</code></td>
  <td>Train on raster or vector data</td>
  <td></td>
</tr>
<tr>
  <td><code>trainingBands</code></td>
  <td><code>String[]</code></td>
  <td><code></code></td>
  <td>Raster bands to train on</td>
  <td></td>
</tr>
<tr>
  <td><code>trainingVectors</code></td>
  <td><code>String[]</code></td>
  <td><code></code></td>
  <td>Vectors to train on</td>
  <td></td>
</tr>
<tr>
  <td><code>featureBands</code></td>
  <td><code>String[]</code></td>
  <td><code></code></td>
  <td>Names of bands to be used as features</td>
  <td></td>
</tr>
<tr>
  <td><code>labelSource</code></td>
  <td><code>String</code></td>
  <td><code></code></td>
  <td>'VectorNodeName' or specific Attribute name</td>
  <td></td>
</tr>
<tr>
  <td><code>evaluateClassifier</code></td>
  <td><code>Boolean</code></td>
  <td><code></code></td>
  <td>Evaluate classifier and features</td>
  <td></td>
</tr>
<tr>
  <td><code>evaluateFeaturePowerSet</code></td>
  <td><code>Boolean</code></td>
  <td><code>false</code></td>
  <td>Evaluate the power set of features</td>
  <td></td>
</tr>
<tr>
  <td><code>minPowerSetSize</code></td>
  <td><code>Integer</code></td>
  <td><code>2</code></td>
  <td>Minimum size of the power set of features</td>
  <td></td>
</tr>
<tr>
  <td><code>maxPowerSetSize</code></td>
  <td><code>Integer</code></td>
  <td><code>7</code></td>
  <td>Maximum size of the power set of features</td>
  <td></td>
</tr>
</table>
<hr/>
</body>
</html>
